<?php
class RoleAttr extends BaseAttr {
	public function RoleAttr($attr, $lang=null, $mutil_lang=false){
		parent::BaseAttr($attr, $lang, $mutil_lang);
	}
	
	protected function init_data(){
		//获取网站角色信息
		$role_mod = new RoleModel();
		$roles = $role_mod->find(array('site_id'=>SITE_ID), 'name');
		$options = array();
		foreach ($roles as $role){
			$options[$role['_id']] = $role['name'];
		}
		return array(
			'options' => $options,
		);
	}
}

?>